Skip to content

[codex] Handle duplicate Google social users#266

Merged
jjoonleo merged 4 commits into
deployfrom
codex/handle-duplicate-google-users
May 5, 2026
Merged

[codex] Handle duplicate Google social users#266
jjoonleo merged 4 commits into
deployfrom
codex/handle-duplicate-google-users

Conversation

@jjoonleo

@jjoonleo jjoonleo commented May 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Avoid NonUniqueResultException when duplicate Google social users already exist in the database
  • Query all matching Google social users ordered by newest user id and continue login with the newest account
  • Log duplicate count so production cleanup is visible

Validation

  • ./gradlew compileJava compileTestJava test --tests devkor.ontime_back.global.jwt.JwtTokenProviderTest --tests devkor.ontime_back.controller.UserAuthControllerTest

Note

  • This prevents login from crashing with existing duplicate rows, but the duplicate database rows should still be cleaned up separately.

@jjoonleo jjoonleo changed the base branch from main to deploy May 5, 2026 17:49
@jjoonleo jjoonleo merged commit 4e4fa23 into deploy May 5, 2026
1 check passed
@jjoonleo jjoonleo deleted the codex/handle-duplicate-google-users branch May 7, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant